package com.youlin.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.youlin.dto.BaseDataResDto;
import com.youlin.dto.BaseResDto;
import com.youlin.dto.Status;
import com.youlin.entities.BygMusicTemplate;
import com.youlin.mapper.BygMusicTemplateMapper;
import com.youlin.service.BygMusicTemplateService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
public class BygMusicTemplateServiceImpl extends ServiceImpl<BygMusicTemplateMapper, BygMusicTemplate> implements BygMusicTemplateService {

    @Override
    public BaseDataResDto<List<BygMusicTemplate>> findAllMsTls() {
        QueryWrapper<BygMusicTemplate> queryWrapper = new QueryWrapper<>();
        List<BygMusicTemplate> musicTemplates = list(queryWrapper);
        return new BaseDataResDto<List<BygMusicTemplate>>(Status.SUCCESS).setData(musicTemplates);
    }

}
